package com.frogs.ucenter.util;

import java.util.Date;

import com.frogs.framework.util.date.DateUtil;

public class ELFuncUtil {

    public static String dateFormat(Long time , String pattern) {
        return DateUtil.formatDate(new Date(time), pattern);
    }
    
    public static String substring(String s ,Integer start , Integer end){
    	if(end > s.length()-1)
    		return s.substring(start, s.length() -1)+"...";
    	return s.substring(start , end)+"..."; 
    }    
    
}